package com.hucheng.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author: 胡成
 * @Version: 0.0.1V
 * @Date: 2019-06-05
 * @Description: 错误消息
 **/
@Data
@Configuration
@PropertySource("classpath:/message.properties")
@ConfigurationProperties(prefix = "message")
public class PropertiesConfig {
    private Map<String, String> code = new ConcurrentHashMap<>();
}
